//
//  ProductShowWebViewController.m
//  WEIMO
//
//  Created by Lixiaoyong on 13-8-7.
//  Copyright (c) 2013年 广州从兴电子开发有限公司. All rights reserved.
//

#import "ProductShowWebViewController.h"

@interface ProductShowWebViewController ()
@property (nonatomic,retain) UIWebView *productWebview;
@end

@implementation ProductShowWebViewController
@synthesize productWebview;
@synthesize webUrl;

- (void)dealloc
{
    self.productWebview = nil;
    self.webUrl = nil;
    [super dealloc];
}

- (id)init
{
    self = [super init];
    if (self)
    {
        
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [[UIBarButtonItem appearance] setTintColor:[UIColor blackColor]];
    
    CGRect rect = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 44);
    self.productWebview = [[[UIWebView alloc] initWithFrame:rect] autorelease];
    self.productWebview.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:self.productWebview];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

- (void)viewWillAppear:(BOOL)animated
{
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:self.webUrl]];
    [self.productWebview loadRequest:request];
}
@end